import React from "react";
import { useRoutes, BrowserRouter } from "react-router-dom";
import { routes } from "./router";
import WhileRouter from "./hooks/WhileRouter";
function App() {
  const El = () => useRoutes(routes);
  return (
    <BrowserRouter>
      <WhileRouter>
        <El />
      </WhileRouter>
    </BrowserRouter>
  );
}

export default App;
